LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := game_shared

LOCAL_MODULE_FILENAME := libgame

LOCAL_SRC_FILES := jni/main.cpp \
                   jni/HBLocaleUtil.cpp \
                   jni/HBOffer.cpp \
                   jni/HBScore.cpp \
                   jni/HBShare.cpp \
                   jni/HBUmeng.cpp \
                   jni/HBUtilies.cpp \
                   jni/HBWebBrowser.cpp \
                   ../../Classes/AppDelegate.cpp \
                   ../../Classes/DataSL.cpp \
                   ../../Classes/DialogChellange.cpp \
                   ../../Classes/DialogReview.cpp \
                   ../../Classes/DialogScore.cpp \
                   ../../Classes/ExplodeScore.cpp \
                   ../../Classes/GlobalData.cpp \
                   ../../Classes/LayerLogo.cpp \
                   ../../Classes/LayerMain.cpp \

LOCAL_C_INCLUDES := $(LOCAL_PATH)/jni
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../Classes

LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static

include $(BUILD_SHARED_LIBRARY)

$(call import-module,CocosDenshion/android)
$(call import-module,cocos2dx)
$(call import-module,extensions)
$(call import-module,cocos2dx/platform/third_party/android/prebuilt/libcurl)
$(call import-module,external/Box2D)
$(call import-module,external/chipmunk)